package com.eonmind.knowledge.contract.api;


import com.eonmind.common.contract.constants.ServiceConstant;
import com.eonmind.common.contract.data.response.ResponseEntity;
import com.eonmind.knowledge.contract.dto.KnowledgeData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 知识库对外接口
 */
@FeignClient(name = ServiceConstant.EON_MIND_AI_KNOWLEDGE_SERVICE)
public interface KnowledgeFeignService {
    @GetMapping("/knowledge-api/knowledge/queryKnowledge")
    ResponseEntity<KnowledgeData> queryKnowledge(@RequestParam(name = "knowledgeId", required = true) Long knowledgeId);
}
